package com.aspose.cells;

public class TextBoxCollection extends CollectionBase {
   private ShapeCollection b;

   TextBoxCollection(ShapeCollection shapes) {
      this.b = shapes;
   }

   public TextBox get(int index) {
      return (TextBox)this.a.get(index);
   }

   public int add(int upperLeftRow, int upperLeftColumn, int height, int width) {
      this.b.b(upperLeftRow, 0, upperLeftColumn, 0, height, width);
      return this.getCount() - 1;
   }

   public void removeAt(int index) {
      this.b.b(this.get(index));
   }

   public void clear() {
      for(int var1 = this.getCount() - 1; var1 >= 0; --var1) {
         this.b.a((Shape)this.get(var1));
      }

      this.a.clear();
   }

   int a(TextBox var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
      return this.getCount() - 1;
   }

   void b(TextBox var1) {
      this.a.remove(var1);
   }
}
